package indi.zhifa.study2024.common.auth.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.core.enummemo.entity.ann.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "角色",desc = "角色",defaultIdx = 1,defaultItem = "老板账号")
public enum ERole {
    BOSS("ep_boss","老板账号","老板账号，有所有系统的能力"),
    BUYER("ep_buyer","进货员账号","进货员账号"),
    SALESMAN("ep_salesman","销售员账号","销售员账号"),
    FINANCIAL("ep_financial","财务账号","财务账号"),
    ACCOUNT_MGR("sys_account_mgr","账号管理员","账号管理员"),
    SYS_MGR("sys_mgr","系统管理员","系统管理员");

    @EnumValue
    @Getter
    private final String code;
    @Getter
    private final String name;
    @Getter
    private final String desc;
}
